Previous Book Contents Book Index Next

Inside Macintosh: /
QuickDraw 3D RAVE / QuickDraw 3D RAVE Reference
QuickDraw 3D RAVE Routines / Manipulating Draw Contexts


QADrawTriTexture

You can use the QADrawTriTexture function to draw texture-mapped triangles.

#define QADrawTriTexture(drawContext,v0,v1,v2,flags) \
      (drawContext)->drawTriTexture (drawContext,v0,v1,v2,flags)
drawContext
A draw context.
v0
A texture vertex.
v1
A texture vertex.
v2
A texture vertex.
flags
A set of triangle flags. See "Triangle Flags Masks," beginning on page 1-63 for a complete description of the available flags.
DESCRIPTION
The QADrawTriTexture function draws the texture-mapped triangle determined by the three points specified by the v0, v1, and v2 parameters into the draw context specified by the drawContext parameter. The texture used for the mapping is determined by the value of the kQATag_Texture state variable. Features of the triangle are determined by the flags parameter. Currently, this parameter is used to specify an orientation for the triangle.

SPECIAL CONSIDERATIONS
The QADrawTriTexture function is optional and must be supported only by drawing engines that support texture mapping.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
28 AUG 1996